package cn.iocoder.an.module.mold.controller.admin.equipmentkeepsettingtype.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.an.framework.excel.core.annotations.DictFormat;
import cn.iocoder.an.framework.excel.core.convert.DictConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 维护类型 Response VO")
@Data
@ExcelIgnoreUnannotated
public class EquipmentKeepSettingTypeRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3346")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "维护项设置")
    @ExcelProperty("维护项设置")
    private List<Long> keepSetting;

    @Schema(description = "类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("类型名称")
    private String name;

    @Schema(description = "周期(天)", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("周期(天)")
    private Integer cycle;

    @Schema(description = "提前提醒(天)", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("提前提醒(天)")
    private Integer remind;

    @Schema(description = "状态", example = "2")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("maintenance_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "描述", example = "随便")
    @ExcelProperty("描述")
    private String description;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}